<div ng-include="'web/include/header_menu.html'"></div>
<!--主体内容-->
<div class="content row" >
    <div class="my-main">
        <!--右侧表格-->
        <div class="right-main">
            <div class="col-sm-12 groupBtn">
                <button type="button" class="btn btn-info" ng-click="deleteResources()" zg-access="resources/logicDelete" id="delete">删除权限</button>
                <!--<button type="button" class="btn btn-info" ng-click="addLimit()">新增</button>-->
            </div>
            <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="resourcesTable" style="width:100%">
                <thead>
                <tr>
                    <td>请选择</td>
                    <td>ID</td>
                    <td>权限名称</td>
                    <td>权限链接</td>
                    <td>权限类型</td>
                </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
           <!--删除权限-->
            <div class="modal fade bd-example-modal-sm" id="deleteSure" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true"  data-backdrop="static">
                <div class="modal-dialog modal-sm">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                            <h4 class="modal-title">删除权限</h4>
                        </div>
                        <div class="modal-body">
                            <p>您确认删除该权限吗？</p>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                            <button type="button" class="btn btn-primary" ng-click="sureDelete()">确定</button>
                        </div>
                    </div>
                </div>
            </div>
            <!--新增权限的弹框-->
            <div class="modal fade bd-example-modal-lg" id="addForm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true"  data-backdrop="static">
                <div class="modal-dialog modal-lg">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                            <h4 class="modal-title">新增权限</h4>
                        </div>
                        <div class="modal-body">
                            <form class="form-horizontal">
                                <div class="form-group">
                                    <label for="limitName" class="col-sm-2 control-label">权限名称</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" id="limitName" placeholder="请输入权限名称" name="limitname">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="parentID" class="col-sm-2 control-label">父资源ID</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" id="parentID" placeholder="请输入父元素ID" name="parentid">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="resUrl" class="col-sm-2 control-label">权限链接</label>
                                    <div class="col-sm-10">
                                        <input type="text" class="form-control" id="resUrl" placeholder="请输入权限链接" name="resurl">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">资源类型</label>
                                    <div class="col-sm-10">
                                        <select name="type" id="type" class="form-control">
                                            <option value="1">菜单</option>
                                            <option value="2">系统设置</option>
                                            <option value="3">按钮</option>
                                        </select>
                                    </div>
                                </div>
                            </form>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                            <button type="button" class="btn btn-primary">确定</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!--尾部-->
<div ng-include="'web/include/footer.html'"></div>
